import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../views/Home'
import course from '../views/Course'
import free from '../views/Free'
import lightCourse from '../views/LightCourse'
import register from '../views/Register'

Vue.use(VueRouter);

const routes = [
  {
    path: '/home',
    component: home
  },
  {
    path: '/',
    redirect:'/home'

  },
    {
    path: '/course',
    component: course
  },
    {
    path: '/free',
    component: free
  },
    {
    path: '/light-course',
    component: lightCourse
  },
     {
    path: '/register',
    component: register
  },
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
